-- GENERATED SPELL FOR [Doomforge Engineer] --


function spell0_19960(pUnit, Event) --@Chemical Flames,n/a--
pUnit:FullCastSpellOnTarget(36253,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19960', 10000, 1)
end

function spell1_19960(pUnit, Event) --@Hammer Slam,n/a--
pUnit:FullCastSpellOnTarget(36251,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19960', 568, 1)
end

function spell2_19960(pUnit, Event) --@Hammer Slam,n/a--
pUnit:FullCastSpellOnTarget(37179,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19960', 900, 1)
end

function Sorts_19960(pUnit, Event)
local choix_sorts_19960 = math.random(0, 2)
if choix_sorts_19960 == 0 then
pUnit:RegisterEvent('spell0_19960', 1, 1)
end
if choix_sorts_19960 == 1 then
pUnit:RegisterEvent('spell1_19960', 1, 1)
end
if choix_sorts_19960 == 2 then
pUnit:RegisterEvent('spell2_19960', 1, 1)
end
end

function mob19960_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19960', math.random(1500, 3000), 1)
end

function mob19960_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19960_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19960_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19960, 1, 'mob19960_Action')
RegisterUnitEvent(19960, 2, 'mob19960_Leave')
RegisterUnitEvent(19960, 3, 'mob19960_Kill')
RegisterUnitEvent(19960, 4, 'mob19960_Die')
